<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>login</title>
    <!-- 基础样式 -->
    <link rel="stylesheet" href="/css/base.css">
    <!-- 插件 -->
    <link rel="stylesheet" href="/lib/layui-v2.7.5/css/layui.css">
    <!-- 字体图标样式 -->
    <link rel="stylesheet" href="/iconfont/iconfont.css">
    <!-- 自己的css -->
    <link rel="stylesheet" href="/pages/login/login.css">
</head>

<body>
    <div class="layui-container">
        <!-- 头部logo区域 -->
        <div class="logo_HD">
            <img src="/images/logo.png" alt="">
        </div>

        <!-- 外层登陆和注册大盒子 -->
        <div class="login-reg-box">
            <!-- 标题 -->
            <div class="title-box"></div>

            <!-- 登陆的大盒子 -->
            <div class="logon-box">
                <!-- 登陆的表单 -->
                <form class="layui-form" id="form_login" action="">
                    <!-- 用户名 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-username"></i>
                            <input type="text" name="title" required lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="username1">
                        </div>
                    </div>
                    <!-- 密码 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-password"></i>
                            <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input" id="pwd1">
                        </div>
                    </div>
                    <!-- 按钮 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">登陆</button>
                        </div>
                    </div>
                    <!-- 去登陆&去注册 -->
                    <div class="btn"><a href="javascript:;" id="link_reg">去注册账号</a></div>
                </form>
            </div>

            <!-- 注册的大盒子 -->
            <div class="reg-box" style="display:none ;">
                <!-- 注册的表单 -->
                <form class="layui-form " id="reg_form" action="">
                    <!-- 用户名 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-username"></i>
                            <input type="text" name="title" required lay-verify="required|username" placeholder="请输入用户名" autocomplete="off" class="layui-input" id="username">
                        </div>
                    </div>
                    <!-- 密码 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-password"></i>
                            <input type="password" name="password" required lay-verify="required|password" placeholder="请输入密码" autocomplete="off" class="layui-input" id="pwd">
                        </div>
                    </div>
                    <!-- 确认密码 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <i class="layui-icon layui-icon-password"></i>
                            <input type="password" name="password" required lay-verify="required" placeholder="请确认密码" autocomplete="off" class="layui-input" id="">
                        </div>
                    </div>
                    <!-- 按钮 -->
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">注册</button>
                        </div>
                    </div>
                    <!-- 去登陆&去注册 -->
                    <div class="btn"><a href="javascript:;" id="link_login">去登陆</a></div>
                </form>
            </div>

        </div>

    </div>
    <!-- 引入jQuer -->
    <script src="/lib/jquery-3.6.0.min.js"></script>
    <!-- 插件layui -->
    <script src="/lib/layui-v2.7.5/layui.js"></script>
    <!-- ajax -->
    <script src="/lib/axios.min.js"></script>
    <!-- 公共js -->
    <script src="/js/apiBase.js"></script>
    <!-- 自己的js -->
    <script src="/pages/login/login.js"></script>
</body>

</html>